<?php
switch ($_POST["NS_PROTOCOL"])
{
		case "Login":
			echo "NS_PROTOCOL=NS_CONFIRMATION&NS_LOGINKEY=" . rand();
			break;

		case "RequestStoreSoftwareList":
			echo "NS_PROTOCOL=RequestStoreSoftwareList&NS_SOFTWARE=ID=1|NS_NAME=testFile|NS_DESCRIPTION=a file to test`NS_SOFTWAREID=2|NS_NAME=contentItem|NS_DESCRIPTION=A .dat file which has no contents";
			break;

		case "UpdateUserSoftwareList":
					echo "NS_PROTOCOL=SoftwareList&NS_Software=`ID=1|Name=testfile|Description=a file to test|OwnerUsername=rowan|ApprovalStatus=1`ID=2|Name=another|Description=another one|OwnerUsername=all|ApprovalStatus=0";
					break;

		case "NS_CreateContent":
			echo "NS_PROTOCOL=NS_CreateContent&NS_RENAMEDFILE=renamedTest.txt";
			break;
}
?>